package com.test.springCloud.utils;

import java.util.regex.Pattern;

/**
 * 匹配字符串
 *
 */
public class MatchStrUtil {
	
	/**
	 * 匹配502网关错误的
	 * @param parentStr
	 * @return
	 */
	public boolean parent502NetFalid(String parentStr){
		String patternHtml = ("^((<html>)(\\s*|\t|\r|\n)*(<head><title>502 Bad Gateway)[\\s\\S]*)$");
		return Pattern.matches(patternHtml, parentStr);
	}

}
